<?php
$htmlOutput = array();
$htmlOutput[] = '<div class="users form">';
$htmlOutput[] =     $form->create('User');
$htmlOutput[] = '   <fieldset>';
$htmlOutput[] = sprintf('<legend> %s </legend>', __('Edit User', true));
$htmlOutput[] =         $form->input('username');
$htmlOutput[] =         $form->input('password');
$htmlOutput[] =         $form->input('group_id', array('type' => 'select', 'values' => $groups));
$htmlOutput[] = '   </fieldset>';
$htmlOutput[] =     $form->end('Submit');
$htmlOutput[] = '</div>';
$htmlOutput[] = '<div class="actions">';
$htmlOutput[] = '   <ul>';
$htmlOutput[] = sprintf('<li> %s </li>', $html->link(__('List Users', true), array('action'=>'index')));
$htmlOutput[] = '   </ul>';
$htmlOutput[] = '</div>';
$htmlOutput[] = '';

echo implode("\n", $htmlOutput);

?>